package com.ly.tree;

public class Node<T extends Comparable<T>> {
    public T value;
    public Node left;
    public Node right;

    Node(T val){
        value = val;
    }

    @Override
    public String toString() {
        return "Node{" +
                "value=" + value +
                ", left=" + left +
                ", right=" + right +
                '}';
    }
}